/*
 * PlayListView.java
 */

package playlist;

import comun.ppNinyo;
import comun.Constantes;
import comun.ppResponsable;
import java.awt.Color;
import java.awt.Image;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.Timer;
import javax.swing.JFrame;
import negocio.CNMain;



/**
 * The application's main frame.
 */
public class PlayListView extends FrameView {

   

    public PlayListView(SingleFrameApplication app) {
        super(app);

        initComponents();

        inicializarComponentes();


// <editor-fold defaultstate="collapsed" desc="Metodos Inicio, autogenerados">

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
// </editor-fold>
    }
// <editor-fold defaultstate="collapsed" desc="Autogenerados">
    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = PlayListApp.getApplication().getMainFrame();
            aboutBox = new PlayListAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        PlayListApp.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jpListas = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jlOUT = new javax.swing.JList();
        jScrollPane2 = new javax.swing.JScrollPane();
        jlIN = new javax.swing.JList();
        jlbOUT = new javax.swing.JLabel();
        jlbOUT1 = new javax.swing.JLabel();
        jbTID = new javax.swing.JButton();
        jbID = new javax.swing.JButton();
        jbDI = new javax.swing.JButton();
        jbTDI = new javax.swing.JButton();
        jcbActividad = new javax.swing.JComboBox();
        jpninyoSeleccionado = new javax.swing.JPanel();
        jlResponsable = new javax.swing.JLabel();
        Nombre8 = new javax.swing.JLabel();
        Nombre9 = new javax.swing.JLabel();
        jtfApellido1Cargo = new javax.swing.JTextField();
        jtfNombreCargo = new javax.swing.JTextField();
        jtftelefono1Cargo = new javax.swing.JTextField();
        jtfApellido2Cargo = new javax.swing.JTextField();
        jcbResponsables = new javax.swing.JComboBox();
        Nombre7 = new javax.swing.JLabel();
        jtftelefono2Cargo = new javax.swing.JTextField();
        Nombre10 = new javax.swing.JLabel();
        Nombre6 = new javax.swing.JLabel();
        jtfEdad = new javax.swing.JTextField();
        jtfApellido2 = new javax.swing.JTextField();
        jtfApellido1 = new javax.swing.JTextField();
        Nombre = new javax.swing.JLabel();
        Nombre1 = new javax.swing.JLabel();
        Nombre2 = new javax.swing.JLabel();
        Nombre3 = new javax.swing.JLabel();
        jtfNombre = new javax.swing.JTextField();
        Nombre4 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jtfNotas = new javax.swing.JTextArea();
        jtfFecha = new javax.swing.JTextField();
        Nombre5 = new javax.swing.JLabel();
        imgFoto = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jbAddRes = new javax.swing.JButton();
        jbEditarRes = new javax.swing.JButton();
        jpBotoneraEdicion = new javax.swing.JPanel();
        jbEditar = new javax.swing.JButton();
        jbEliminar = new javax.swing.JButton();
        jbAdd = new javax.swing.JButton();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();
        jlMensajes = new javax.swing.JLabel();

        mainPanel.setFocusable(false);
        mainPanel.setMaximumSize(new java.awt.Dimension(800, 600));
        mainPanel.setName("mainPanel"); // NOI18N
        mainPanel.setPreferredSize(new java.awt.Dimension(800, 600));

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(playlist.PlayListApp.class).getContext().getResourceMap(PlayListView.class);
        jpListas.setBackground(resourceMap.getColor("jpListas.background")); // NOI18N
        jpListas.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jpListas.setName("jpListas"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jlOUT.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jlOUT.setName("jlOUT"); // NOI18N
        jlOUT.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jlOUTMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jlOUT);

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jlIN.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jlIN.setName("jlIN"); // NOI18N
        jlIN.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jlINMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(jlIN);

        jlbOUT.setFont(resourceMap.getFont("jlbOUT.font")); // NOI18N
        jlbOUT.setText(resourceMap.getString("jlbOUT.text")); // NOI18N
        jlbOUT.setName("jlbOUT"); // NOI18N

        jlbOUT1.setFont(resourceMap.getFont("jlbOUT1.font")); // NOI18N
        jlbOUT1.setText(resourceMap.getString("jlbOUT1.text")); // NOI18N
        jlbOUT1.setName("jlbOUT1"); // NOI18N

        jbTID.setToolTipText(resourceMap.getString("jbTID.toolTipText")); // NOI18N
        jbTID.setLabel(resourceMap.getString("jbTID.label")); // NOI18N
        jbTID.setName("jbTID"); // NOI18N
        jbTID.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbTIDMouseClicked(evt);
            }
        });

        jbID.setToolTipText(resourceMap.getString("jbID.toolTipText")); // NOI18N
        jbID.setLabel(resourceMap.getString("jbID.label")); // NOI18N
        jbID.setName("jbID"); // NOI18N
        jbID.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbIDMouseClicked(evt);
            }
        });

        jbDI.setToolTipText(resourceMap.getString("jbDI.toolTipText")); // NOI18N
        jbDI.setLabel(resourceMap.getString("jbDI.label")); // NOI18N
        jbDI.setName("jbDI"); // NOI18N
        jbDI.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbDIMouseClicked(evt);
            }
        });

        jbTDI.setToolTipText(resourceMap.getString("jbTDI.toolTipText")); // NOI18N
        jbTDI.setLabel(resourceMap.getString("jbTDI.label")); // NOI18N
        jbTDI.setName("jbTDI"); // NOI18N
        jbTDI.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbTDIMouseClicked(evt);
            }
        });

        jcbActividad.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jcbActividad.setName("jcbActividad"); // NOI18N

        javax.swing.GroupLayout jpListasLayout = new javax.swing.GroupLayout(jpListas);
        jpListas.setLayout(jpListasLayout);
        jpListasLayout.setHorizontalGroup(
            jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpListasLayout.createSequentialGroup()
                .addContainerGap(10, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jbTID)
                    .addComponent(jbID)
                    .addComponent(jbDI)
                    .addComponent(jbTDI))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35))
            .addGroup(jpListasLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jlbOUT)
                .addGap(224, 224, 224)
                .addComponent(jlbOUT1)
                .addGap(18, 18, 18)
                .addComponent(jcbActividad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(168, Short.MAX_VALUE))
        );
        jpListasLayout.setVerticalGroup(
            jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpListasLayout.createSequentialGroup()
                .addGroup(jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpListasLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jpListasLayout.createSequentialGroup()
                                .addGroup(jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jlbOUT1)
                                    .addComponent(jlbOUT))
                                .addGap(8, 8, 8))
                            .addGroup(jpListasLayout.createSequentialGroup()
                                .addComponent(jcbActividad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
                        .addGroup(jpListasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 391, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 391, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jpListasLayout.createSequentialGroup()
                        .addGap(150, 150, 150)
                        .addComponent(jbTID)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbID)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbDI)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jbTDI)))
                .addContainerGap(143, Short.MAX_VALUE))
        );

        jpninyoSeleccionado.setBackground(resourceMap.getColor("jpNiño.background")); // NOI18N
        jpninyoSeleccionado.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jpninyoSeleccionado.setName("jpNiño"); // NOI18N
        jpninyoSeleccionado.setPreferredSize(new java.awt.Dimension(392, 546));
        jpninyoSeleccionado.setRequestFocusEnabled(false);
        jpninyoSeleccionado.setVerifyInputWhenFocusTarget(false);

        jlResponsable.setFont(resourceMap.getFont("jlResponsable.font")); // NOI18N
        jlResponsable.setText(resourceMap.getString("jlResponsable.text")); // NOI18N
        jlResponsable.setName("jlResponsable"); // NOI18N

        Nombre8.setText(resourceMap.getString("Nombre8.text")); // NOI18N
        Nombre8.setName("Nombre8"); // NOI18N

        Nombre9.setText(resourceMap.getString("Nombre9.text")); // NOI18N
        Nombre9.setName("Nombre9"); // NOI18N

        jtfApellido1Cargo.setBackground(resourceMap.getColor("jtfApellido1Cargo.background")); // NOI18N
        jtfApellido1Cargo.setText(resourceMap.getString("jtfApellido1Cargo.text")); // NOI18N
        jtfApellido1Cargo.setFocusable(false);
        jtfApellido1Cargo.setName("jtfApellido1Cargo"); // NOI18N
        jtfApellido1Cargo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfApellido1CargoFocusLost(evt);
            }
        });

        jtfNombreCargo.setBackground(resourceMap.getColor("jtfNombreCargo.background")); // NOI18N
        jtfNombreCargo.setText(resourceMap.getString("jtfNombreCargo.text")); // NOI18N
        jtfNombreCargo.setFocusable(false);
        jtfNombreCargo.setMaximumSize(new java.awt.Dimension(1, 2147483647));
        jtfNombreCargo.setName("jtfNombreCargo"); // NOI18N
        jtfNombreCargo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfNombreCargoFocusLost(evt);
            }
        });

        jtftelefono1Cargo.setBackground(resourceMap.getColor("jtftelefono1Cargo.background")); // NOI18N
        jtftelefono1Cargo.setText(resourceMap.getString("jtftelefono1Cargo.text")); // NOI18N
        jtftelefono1Cargo.setFocusable(false);
        jtftelefono1Cargo.setName("jtftelefono1Cargo"); // NOI18N
        jtftelefono1Cargo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtftelefono1CargoFocusLost(evt);
            }
        });

        jtfApellido2Cargo.setBackground(resourceMap.getColor("jtfApellido2Cargo.background")); // NOI18N
        jtfApellido2Cargo.setText(resourceMap.getString("jtfApellido2Cargo.text")); // NOI18N
        jtfApellido2Cargo.setFocusable(false);
        jtfApellido2Cargo.setName("jtfApellido2Cargo"); // NOI18N
        jtfApellido2Cargo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfApellido2CargoFocusLost(evt);
            }
        });

        jcbResponsables.setEnabled(false);
        jcbResponsables.setName("jcbResponsables"); // NOI18N

        Nombre7.setText(resourceMap.getString("Nombre7.text")); // NOI18N
        Nombre7.setName("Nombre7"); // NOI18N

        jtftelefono2Cargo.setBackground(resourceMap.getColor("jtftelefono2Cargo.background")); // NOI18N
        jtftelefono2Cargo.setFocusable(false);
        jtftelefono2Cargo.setName("jtftelefono2Cargo"); // NOI18N
        jtftelefono2Cargo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtftelefono2CargoFocusLost(evt);
            }
        });

        Nombre10.setText(resourceMap.getString("Nombre10.text")); // NOI18N
        Nombre10.setName("Nombre10"); // NOI18N

        Nombre6.setText(resourceMap.getString("Nombre6.text")); // NOI18N
        Nombre6.setName("Nombre6"); // NOI18N

        jtfEdad.setBackground(resourceMap.getColor("jtfEdad.background")); // NOI18N
        jtfEdad.setText(resourceMap.getString("jtfEdad.text")); // NOI18N
        jtfEdad.setFocusable(false);
        jtfEdad.setName("jtfEdad"); // NOI18N

        jtfApellido2.setBackground(resourceMap.getColor("jtfApellido2.background")); // NOI18N
        jtfApellido2.setText(resourceMap.getString("jtfApellido2.text")); // NOI18N
        jtfApellido2.setFocusable(false);
        jtfApellido2.setName("jtfApellido2"); // NOI18N
        jtfApellido2.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfApellido2FocusLost(evt);
            }
        });

        jtfApellido1.setBackground(resourceMap.getColor("jtfApellido1.background")); // NOI18N
        jtfApellido1.setText(resourceMap.getString("jtfApellido1.text")); // NOI18N
        jtfApellido1.setFocusable(false);
        jtfApellido1.setName("jtfApellido1"); // NOI18N
        jtfApellido1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfApellido1FocusLost(evt);
            }
        });

        Nombre.setText(resourceMap.getString("Nombre.text")); // NOI18N
        Nombre.setName("Nombre"); // NOI18N

        Nombre1.setText(resourceMap.getString("Nombre1.text")); // NOI18N
        Nombre1.setName("Nombre1"); // NOI18N

        Nombre2.setText(resourceMap.getString("Nombre2.text")); // NOI18N
        Nombre2.setName("Nombre2"); // NOI18N

        Nombre3.setText(resourceMap.getString("Nombre3.text")); // NOI18N
        Nombre3.setName("Nombre3"); // NOI18N

        jtfNombre.setBackground(resourceMap.getColor("jtfNombre.background")); // NOI18N
        jtfNombre.setText(resourceMap.getString("jtfNombre.text")); // NOI18N
        jtfNombre.setFocusable(false);
        jtfNombre.setMaximumSize(new java.awt.Dimension(1, 2147483647));
        jtfNombre.setName("jtfNombre"); // NOI18N
        jtfNombre.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfNombreFocusLost(evt);
            }
        });

        Nombre4.setText(resourceMap.getString("Nombre4.text")); // NOI18N
        Nombre4.setName("Nombre4"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        jtfNotas.setBackground(resourceMap.getColor("jtfNotas.background")); // NOI18N
        jtfNotas.setColumns(20);
        jtfNotas.setRows(5);
        jtfNotas.setFocusable(false);
        jtfNotas.setName("jtfNotas"); // NOI18N
        jtfNotas.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfNotasFocusLost(evt);
            }
        });
        jScrollPane3.setViewportView(jtfNotas);

        jtfFecha.setBackground(resourceMap.getColor("jtfFecha.background")); // NOI18N
        jtfFecha.setText(resourceMap.getString("jtfFecha.text")); // NOI18N
        jtfFecha.setFocusable(false);
        jtfFecha.setName("jtfFecha"); // NOI18N
        jtfFecha.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jtfFechaFocusLost(evt);
            }
        });

        Nombre5.setText(resourceMap.getString("Nombre5.text")); // NOI18N
        Nombre5.setName("Nombre5"); // NOI18N

        imgFoto.setBackground(resourceMap.getColor("imgFoto.background")); // NOI18N
        imgFoto.setForeground(resourceMap.getColor("imgFoto.foreground")); // NOI18N
        imgFoto.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        imgFoto.setName("imgFoto"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        jbAddRes.setBackground(resourceMap.getColor("jbAddRes.background")); // NOI18N
        jbAddRes.setForeground(resourceMap.getColor("jbAddRes.foreground")); // NOI18N
        jbAddRes.setIcon(null);
        jbAddRes.setContentAreaFilled(false);
        jbAddRes.setFocusPainted(false);
        jbAddRes.setName("jbAddRes"); // NOI18N
        jbAddRes.setPressedIcon(null);
        jbAddRes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbAddResMouseClicked(evt);
            }
        });

        jbEditarRes.setBackground(resourceMap.getColor("jbEditarRes.background")); // NOI18N
        jbEditarRes.setForeground(resourceMap.getColor("jbEditarRes.foreground")); // NOI18N
        jbEditarRes.setIcon(null);
        jbEditarRes.setContentAreaFilled(false);
        jbEditarRes.setFocusPainted(false);
        jbEditarRes.setName("jbEditarRes"); // NOI18N
        jbEditarRes.setPressedIcon(null);
        jbEditarRes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbEditarResMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jpninyoSeleccionadoLayout = new javax.swing.GroupLayout(jpninyoSeleccionado);
        jpninyoSeleccionado.setLayout(jpninyoSeleccionadoLayout);
        jpninyoSeleccionadoLayout.setHorizontalGroup(
            jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(imgFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Nombre1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Nombre2, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Nombre3, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Nombre5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtfApellido1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtfApellido2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtfFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addGap(130, 130, 130)
                        .addComponent(Nombre4, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jtfEdad, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(Nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                            .addComponent(jbAddRes, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jbEditarRes, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jlResponsable, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jcbResponsables, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                                        .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(Nombre10, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(Nombre9, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(Nombre6, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(Nombre8, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(Nombre7, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jtftelefono2Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jtftelefono1Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(jtfApellido2Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jtfNombreCargo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jtfApellido1Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)))))))))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jpninyoSeleccionadoLayout.setVerticalGroup(
            jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(imgFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addComponent(Nombre1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(Nombre2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(Nombre3, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(Nombre5, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(jtfApellido1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(jtfApellido2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(jtfFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(10, 10, 10)
                .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Nombre4, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtfEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addComponent(Nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addComponent(jlResponsable)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcbResponsables, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jbAddRes, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jbEditarRes, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                .addGroup(jpninyoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addComponent(Nombre6, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(5, 5, 5)
                        .addComponent(Nombre7, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Nombre8, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Nombre9, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Nombre10, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jpninyoSeleccionadoLayout.createSequentialGroup()
                        .addComponent(jtfNombreCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(5, 5, 5)
                        .addComponent(jtfApellido1Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtfApellido2Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtftelefono1Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtftelefono2Cargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jpBotoneraEdicion.setBackground(resourceMap.getColor("jpBotoneraEdicion.background")); // NOI18N
        jpBotoneraEdicion.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jpBotoneraEdicion.setName("jpBotoneraEdicion"); // NOI18N

        jbEditar.setBackground(resourceMap.getColor("jbEditar.background")); // NOI18N
        jbEditar.setForeground(resourceMap.getColor("jbEditar.foreground")); // NOI18N
        jbEditar.setIcon(resourceMap.getIcon("jbEditar.icon")); // NOI18N
        jbEditar.setContentAreaFilled(false);
        jbEditar.setFocusPainted(false);
        jbEditar.setName("jbEditar"); // NOI18N
        jbEditar.setPressedIcon(resourceMap.getIcon("jbEditar.pressedIcon")); // NOI18N
        jbEditar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbEditarMouseClicked(evt);
            }
        });

        jbEliminar.setBackground(resourceMap.getColor("jbEliminar.background")); // NOI18N
        jbEliminar.setForeground(resourceMap.getColor("jbEliminar.foreground")); // NOI18N
        jbEliminar.setIcon(resourceMap.getIcon("jbEliminar.icon")); // NOI18N
        jbEliminar.setContentAreaFilled(false);
        jbEliminar.setFocusPainted(false);
        jbEliminar.setName("jbEliminar"); // NOI18N
        jbEliminar.setPressedIcon(resourceMap.getIcon("jbEliminar.pressedIcon")); // NOI18N

        jbAdd.setBackground(resourceMap.getColor("jbAdd.background")); // NOI18N
        jbAdd.setForeground(resourceMap.getColor("jbAdd.foreground")); // NOI18N
        jbAdd.setIcon(resourceMap.getIcon("jbAdd.icon")); // NOI18N
        jbAdd.setContentAreaFilled(false);
        jbAdd.setFocusPainted(false);
        jbAdd.setName("jbAdd"); // NOI18N
        jbAdd.setPressedIcon(resourceMap.getIcon("jbAdd.pressedIcon")); // NOI18N
        jbAdd.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jbAddMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jpBotoneraEdicionLayout = new javax.swing.GroupLayout(jpBotoneraEdicion);
        jpBotoneraEdicion.setLayout(jpBotoneraEdicionLayout);
        jpBotoneraEdicionLayout.setHorizontalGroup(
            jpBotoneraEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpBotoneraEdicionLayout.createSequentialGroup()
                .addContainerGap(268, Short.MAX_VALUE)
                .addComponent(jbAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jbEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jbEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jpBotoneraEdicionLayout.setVerticalGroup(
            jpBotoneraEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpBotoneraEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpBotoneraEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jbAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpListas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jpBotoneraEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jpninyoSeleccionado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(296, Short.MAX_VALUE))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jpListas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
                        .addComponent(jpBotoneraEdicion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jpninyoSeleccionado, javax.swing.GroupLayout.PREFERRED_SIZE, 519, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(403, 403, 403))
        );

        menuBar.setMaximumSize(new java.awt.Dimension(92, 327));
        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(playlist.PlayListApp.class).getContext().getActionMap(PlayListView.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setMaximumSize(new java.awt.Dimension(32767, 600));
        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        jlMensajes.setBackground(resourceMap.getColor("jlMensajes.background")); // NOI18N
        jlMensajes.setFont(resourceMap.getFont("jlMensajes.font")); // NOI18N
        jlMensajes.setForeground(resourceMap.getColor("jlMensajes.foreground")); // NOI18N
        jlMensajes.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jlMensajes.setName("jlMensajes"); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1393, Short.MAX_VALUE)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jlMensajes, javax.swing.GroupLayout.PREFERRED_SIZE, 891, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(42, 42, 42)
                .addComponent(statusMessageLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 290, Short.MAX_VALUE)
                .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPanelLayout.createSequentialGroup()
                        .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(statusMessageLabel)
                            .addComponent(statusAnimationLabel)
                            .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(3, 3, 3))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPanelLayout.createSequentialGroup()
                        .addComponent(jlMensajes, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

    // </editor-fold>

// <editor-fold defaultstate="collapsed" desc="Inicializar componentes">

    private void inicializarComponentes()
    {
        // Conectamos con BD para recoger los datos de los niños
        try{

            CNMain cn_main = new CNMain();
            ArrayList lstNinyos = new ArrayList();

            modeloComboActividad = cn_main.inicializarFechas();

           // Niños IN
           String fecha_actividad = modeloComboActividad.getElementAt(0).toString();
           lstNinyos = cn_main.inicializarNinyos(fecha_actividad,Constantes.KIN);
           agregarNinyosAModelo(modeloIN,modeloINValor,lstNinyos);

           // Ninyos OUT
           lstNinyos = new ArrayList();
           lstNinyos = cn_main.inicializarNinyos(fecha_actividad,Constantes.KOUT);
           agregarNinyosAModelo(modeloOUT,modeloOUTValor,lstNinyos);

           // Asignamos modelos a las correspondientes estructuras visuales
           jlOUT.setModel(modeloOUT);
           jlIN.setModel(modeloIN);
           jcbActividad.setModel(modeloComboActividad);

            //Limpiamos la información del niño seleccionado
            limpiarNinyo();

        }catch(Exception ex)
        {
                 Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

    private void agregarNinyosAModelo(DefaultListModel modelo,DefaultListModel modeloValor, ArrayList lstNinyos) throws Exception
    {
        try
        {
            for(int i = 0; i < lstNinyos.size(); i++ )
            {
                modeloValor.addElement(((ppNinyo)lstNinyos.get(i)).getId());
                modelo.addElement(((ppNinyo)lstNinyos.get(i)).getNombre() + " " +((ppNinyo)lstNinyos.get(i)).getApellido1() + " " + ((ppNinyo)lstNinyos.get(i)).getApellido2());
            }
        }catch(Exception ex)
        {
            throw ex;
        }
    }
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="Listas">
    // <editor-fold defaultstate="collapsed" desc="Metodos de transpaso entre listas">
    private void jbTIDMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbTIDMouseClicked
// Se mueven todos los elementos a la lista listaIN y se borran los de la lista de fuera
               
        for(int i=0;i<modeloOUT.size();i++)
        {
            modeloIN.addElement(modeloOUT.get(i));
            modeloINValor.addElement(modeloOUTValor.get(i));
        }

        modeloOUTValor.removeAllElements();
        modeloOUT.removeAllElements();
    }//GEN-LAST:event_jbTIDMouseClicked


    private void jbIDMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbIDMouseClicked
    // se mueven los elementos seleccionados a la listaIN

        int i;
        int[] indices=jlOUT.getSelectedIndices();
        
        // Priemro insertamos en la lista
        for( i=0;i < indices.length;i++)
        {
            modeloIN.addElement(modeloOUT.get(indices[i]));
            modeloINValor.addElement(modeloOUTValor.get(indices[i]));
        }
        // y luego borramos
        for( i=indices.length-1;i >= 0 ;i--)
        {
            modeloOUT.removeElementAt(indices[i]);
            modeloOUTValor.removeElementAt(indices[i]);
        }
    }//GEN-LAST:event_jbIDMouseClicked

    private void jbDIMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbDIMouseClicked
       // se mueven los elementos seleccionados a la listaOUT

        int i;
        int[] indices=jlIN.getSelectedIndices();

        // Priemro insertamos en la lista
        for( i=0;i < indices.length;i++)
        {
            modeloOUT.addElement(modeloIN.get(indices[i]));
            modeloOUTValor.addElement(modeloINValor.get(indices[i]));
        }

        // y luego borramos
        for( i=indices.length-1;i >= 0 ;i--)
        {
            modeloIN.removeElementAt(indices[i]);
            modeloINValor.removeElementAt(indices[i]);
        }
    }//GEN-LAST:event_jbDIMouseClicked

    private void jbTDIMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbTDIMouseClicked
     // Se mueven todos los elementos a la lista listaOUT y se borran los de la listaIN

        for(int i=0;i<modeloIN.size();i++)
        {
            modeloOUT.addElement(modeloIN.get(i));
            modeloOUTValor.addElement(modeloINValor.get(i));
        }

        modeloIN.removeAllElements();
        modeloINValor.removeAllElements();
    }//GEN-LAST:event_jbTDIMouseClicked

// </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Selección de niño">
    private void jlINMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jlINMouseClicked
        try {

            int indice=jlIN.getSelectedIndex();
            String ninyo = modeloINValor.getElementAt(indice).toString().trim();
            indice = Integer.parseInt(ninyo);
            SeleccionarNinyo(indice);

        } catch (Exception ex) {
            Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jlINMouseClicked

    private void jlOUTMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jlOUTMouseClicked
        try {

            int indice=jlOUT.getSelectedIndex();
            String ninyo = modeloOUTValor.getElementAt(indice).toString().trim();
            indice = Integer.parseInt(ninyo);
            SeleccionarNinyo(indice);

        } catch (Exception ex) {
            Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jlOUTMouseClicked

    private void jbAddMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbAddMouseClicked
        // Añadir un niño a la base de datos


        try {
            //Borramos panel de niño
            limpiarNinyo();
        
            //Habilitamos los textboxes
            habilitarTextBoxes(true,true);

        } catch (Exception ex) {
            Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, ex);
        }

   
    }//GEN-LAST:event_jbAddMouseClicked

    private void jbEditarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbEditarMouseClicked
        try {
            // Editamos el niño
            
            //Habilitamos los textboxes en caso de que tenga un niño seleccionado
            if (!jtfNombre.getText().isEmpty())
            {
                habilitarTextBoxes(true,true);
            }

        } catch (Exception ex) {
            Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_jbEditarMouseClicked

    private void SeleccionarNinyo(int ninyo) throws Exception
    {
         // Conectamos con BD para recoger los datos de los niños
        try{

            //Deshabilitamos los textboxes
            habilitarTextBoxes(false,false);

         if (ninyo >= 0)
         {
            //Limpiamos la información del niño seleccionado
            limpiarNinyo();

            CNMain cn_main = new CNMain();
            ppNinyo detalleNinyo = new ppNinyo();
            detalleNinyo = cn_main.SeleccionarNinyo(ninyo);


           jtfNombre.setText(detalleNinyo.getNombre());
           jtfApellido1.setText(detalleNinyo.getApellido1());
           jtfApellido2.setText(detalleNinyo.getApellido2());
           jtfFecha.setText(detalleNinyo.getFecha());
           jtfEdad.setText(detalleNinyo.getEdad());
           jtfNotas.setText(detalleNinyo.getNotas());

           // Seleccionamos la imágen
           ImageIcon icono = null;
           ImageIcon tmpIcon = new ImageIcon(resMap.getString("KURLIMG") + "foto" + ninyo + ".jpg", "Foto carnet");
           imgFoto.setIcon(tmpIcon);
           if(tmpIcon.getIconWidth() > 100)
           {
              // Redimensionamos, ya que la foto es muy grande

               if(tmpIcon.getIconWidth() > 90)
               {
                    icono = new ImageIcon( tmpIcon.getImage().getScaledInstance(100, -1, Image.SCALE_DEFAULT));
                    imgFoto.setIcon(icono);
               }
            }
           else
               if(tmpIcon.getIconWidth() == -1)
                    imgFoto.setIcon(resMap.getIcon("imageLabel.icon"));

           // Recuperamos al Responsable del niño

           //inicializamos el modelo
           modeloComboResponsable.removeAllElements();
           
            ArrayList lstResponsables = new ArrayList();
            lstResponsables = cn_main.SeleccionarResponsables(ninyo);
            agregarResponsablesAModelo(modeloComboResponsable,modeloComboResponsableValor,lstResponsables);

            // Asignamos modelos a las correspondientes estructuras visuales
            if(modeloComboResponsable.getSize() == 0)
            {
                jcbResponsables.setEnabled(false);
            }
            else
                jcbResponsables.setEnabled(true);

            jcbResponsables.setModel(modeloComboResponsable);

         }

        }catch(Exception e)
        {
            throw e;
        }

    }

    private void agregarResponsablesAModelo(DefaultComboBoxModel modelo,DefaultComboBoxModel modeloValor, ArrayList lstResponsables) throws Exception
    {
         try
        {
            for(int i = 0; i < lstResponsables.size(); i++ )
            {
                modeloValor.addElement(((ppResponsable)lstResponsables.get(i)).getId());
                modelo.addElement(((ppResponsable)lstResponsables.get(i)).getNombre() + " " +((ppResponsable)lstResponsables.get(i)).getApellido1() + " " + ((ppResponsable)lstResponsables.get(i)).getApellido2());
            }
        }catch(Exception ex)
        {
            throw ex;
        }
    }
// </editor-fold>

           private void habilitarTextBoxes(boolean valor,boolean editar) throws Exception
    {
        try
        {

        // cambiamos fondos de color para resaltar lo que se puede cambiar
         Color colorFondo = Color.LIGHT_GRAY;
         if (editar)
         {
            colorFondo = Color.WHITE; // Fondo color salmón

         }
        jtfNombre.setBackground(colorFondo);
        jtfApellido1.setBackground(colorFondo);
        jtfApellido2.setBackground(colorFondo);
        jtfFecha.setBackground(colorFondo);
        jtfNotas.setBackground(colorFondo);


        // Cambiamos estados
        jtfNombre.setFocusable(valor);
        jtfApellido1.setFocusable(valor);
        jtfApellido2.setFocusable(valor);
        jtfFecha.setFocusable(valor);
        // jtfEdad.setFocusable(valor); es un campo generado
        jtfNotas.setFocusable(valor);
        jcbResponsables.setEnabled(valor);

        }catch(Exception e)
        {
            throw e;
        }


    }
    // </editor-fold>


    // <editor-fold defaultstate="collapsed" desc="Validaciones">
    private void jtfFechaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfFechaFocusLost
        try
        {
           

             javax.swing.JTextField valor = existeErrores();
            if(valor == jtfFecha || valor == null)
                comprobarFecha(jtfFecha);

            if(jtfFecha.getBackground() == Color.PINK)
               jtfFecha.requestFocus();

        }catch(Exception e)
        {
               Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, e);
        }

    }//GEN-LAST:event_jtfFechaFocusLost


    private void jtfNombreFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfNombreFocusLost
         try
        {
            javax.swing.JTextField valor = existeErrores();
            if(valor == jtfNombre || valor == null)
                comprobarTextFiel(jtfNombre,Constantes.KintTamano50,Constantes.Knombre);

            if(jtfNombre.getBackground() == Color.PINK)
                    jtfNombre.requestFocus();

        }catch(Exception e)
        {
               Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_jtfNombreFocusLost

    private void jtfApellido1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfApellido1FocusLost
        try
        {
            javax.swing.JTextField valor = existeErrores();
            if(valor == jtfApellido1 || valor == null)
                comprobarTextFiel(jtfApellido1,Constantes.KintTamano50,Constantes.Kapellido1);
            
            //if(txtMensaje.equalsIgnoreCase(jlMensajes.getText()))
            if(jtfApellido1.getBackground() == Color.PINK)
                jtfApellido1.requestFocus();


        }catch(Exception e)
        {
               Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_jtfApellido1FocusLost

    private void jtfApellido2FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfApellido2FocusLost
        try
        {
           javax.swing.JTextField valor = existeErrores();
            if(valor == jtfApellido2 || valor == null)
               comprobarTextFiel(jtfApellido2,Constantes.KintTamano50,Constantes.Kapellido2);

            if(jtfApellido2.getBackground() == Color.PINK)
               jtfApellido2.requestFocus();

        }catch(Exception e)
        {
               Logger.getLogger(PlayListView.class.getName()).log(Level.SEVERE, null, e);
        }
    }//GEN-LAST:event_jtfApellido2FocusLost

    private void jtfNotasFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfNotasFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jtfNotasFocusLost

    private void jtftelefono1CargoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtftelefono1CargoFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jtftelefono1CargoFocusLost

    private void jtfApellido2CargoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfApellido2CargoFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jtfApellido2CargoFocusLost

    private void jtfApellido1CargoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfApellido1CargoFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jtfApellido1CargoFocusLost

    private void jtfNombreCargoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtfNombreCargoFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jtfNombreCargoFocusLost

    private void jtftelefono2CargoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jtftelefono2CargoFocusLost
        // TODO add your handling code here:
    }//GEN-LAST:event_jtftelefono2CargoFocusLost

    private void jbAddResMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbAddResMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jbAddResMouseClicked

    private void jbEditarResMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbEditarResMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jbEditarResMouseClicked

    private javax.swing.JTextField existeErrores()
    {
        // devuelve true si existe algún campo con error.
        // Esto se hace ya que al recoger el foco, tarda lo suficiente como para
        // que salga el mensaje de error del otro campo seleccionado en el ejemplo de insercción y todo está vacío.
        
        javax.swing.JTextField valor = null;

        if (jtfNombre.getBackground() == Color.PINK)
            valor = jtfNombre;

        if (jtfApellido1.getBackground() == Color.PINK)
            valor = jtfApellido1;

        if (jtfApellido2.getBackground() == Color.PINK)
            valor = jtfApellido2;

        if (jtfFecha.getBackground() == Color.PINK)
            valor = jtfFecha;

//      if (jtfNotas.getBackground() == Color.PINK)
//            valor = jtfNotas;

        return valor;
    }

    private void comprobarFecha(javax.swing.JTextField fec)
    {
        String valor="";
        try {
            if(fec.getText().length() == 10)
            {
                SimpleDateFormat formatoFecha = new SimpleDateFormat("dd/MM/yyyy",
                Locale.getDefault());
                formatoFecha.setLenient(false);
                formatoFecha.parse(fec.getText());
            }
            else
                valor = resMap.getString("msnErrorFechaFormato");

        }catch (ParseException e) {
             valor = resMap.getString("msnErrorFechaFormato");
        }

        // Bloque 1: Por si pasa el test de validación, que lo muestre correctamente.
        fec.setBackground(Color.WHITE);

        if(!valor.isEmpty())        // Bloque 2: Resaltamos el campo erroneo
        {
            fec.setBackground(Color.PINK);
        }

        jlMensajes.setText(valor);
    }
    
    private void comprobarTextFiel(javax.swing.JTextField txtField,int tamanoMax,String campo) throws Exception
    {
        String valor="";
        try {
            if(txtField.getText().isEmpty())
            {
                valor = resMap.getString("msnErrorEmpty");
                valor = valor.replace("xxx", campo);
            }
            else
                if(txtField.getText().length() > tamanoMax)
                {
                   valor = resMap.getString("msnErrorTamano");
                   valor = valor.replace("xxx", campo);
                   valor = valor.replace("yyy", tamanoMax + "");
                   txtField.setText(txtField.getText().substring(0, tamanoMax-1));
                }


             // Bloque 1: Por si pasa el test de validación, que lo muestre correctamente.
            if(txtField.isFocusable()) //Al cancelar la edición (seleccionando un niño de las listas) se queda en blanco, con esta comprobación se soluciona
                txtField.setBackground(Color.WHITE);

                if(!valor.isEmpty())        // Bloque 2: Resaltamos el campo erroneo
                {
                    txtField.setBackground(Color.PINK);
                }

             jlMensajes.setText(valor);
         
   

        }catch (Exception e) {
           throw e;
        }
    }
    // </editor-fold>




// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="Varios">
    private void limpiarNinyo()
    {
         //Limpiamos los textboxes
         jtfNombre.setText("");
         jtfApellido1.setText("");
         jtfApellido2.setText("");
         jtfFecha.setText("");
         jtfEdad.setText("");
         jtfNotas.setText("");
         imgFoto.setIcon(new ImageIcon());
    }

// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="Variables declaration">
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Nombre;
    private javax.swing.JLabel Nombre1;
    private javax.swing.JLabel Nombre10;
    private javax.swing.JLabel Nombre2;
    private javax.swing.JLabel Nombre3;
    private javax.swing.JLabel Nombre4;
    private javax.swing.JLabel Nombre5;
    private javax.swing.JLabel Nombre6;
    private javax.swing.JLabel Nombre7;
    private javax.swing.JLabel Nombre8;
    private javax.swing.JLabel Nombre9;
    private javax.swing.JLabel imgFoto;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton jbAdd;
    private javax.swing.JButton jbAddRes;
    private javax.swing.JButton jbDI;
    private javax.swing.JButton jbEditar;
    private javax.swing.JButton jbEditarRes;
    private javax.swing.JButton jbEliminar;
    private javax.swing.JButton jbID;
    private javax.swing.JButton jbTDI;
    private javax.swing.JButton jbTID;
    private javax.swing.JComboBox jcbActividad;
    private javax.swing.JComboBox jcbResponsables;
    private javax.swing.JList jlIN;
    private javax.swing.JLabel jlMensajes;
    private javax.swing.JList jlOUT;
    private javax.swing.JLabel jlResponsable;
    private javax.swing.JLabel jlbOUT;
    private javax.swing.JLabel jlbOUT1;
    private javax.swing.JPanel jpBotoneraEdicion;
    private javax.swing.JPanel jpListas;
    private javax.swing.JPanel jpninyoSeleccionado;
    private javax.swing.JTextField jtfApellido1;
    private javax.swing.JTextField jtfApellido1Cargo;
    private javax.swing.JTextField jtfApellido2;
    private javax.swing.JTextField jtfApellido2Cargo;
    private javax.swing.JTextField jtfEdad;
    private javax.swing.JTextField jtfFecha;
    private javax.swing.JTextField jtfNombre;
    private javax.swing.JTextField jtfNombreCargo;
    private javax.swing.JTextArea jtfNotas;
    private javax.swing.JTextField jtftelefono1Cargo;
    private javax.swing.JTextField jtftelefono2Cargo;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    //Modelos para listas
    DefaultListModel modeloOUT = new DefaultListModel();
    DefaultListModel modeloOUTValor = new DefaultListModel();
    DefaultListModel modeloIN = new DefaultListModel();
    DefaultListModel modeloINValor = new DefaultListModel();
    DefaultComboBoxModel modeloComboActividad = new DefaultComboBoxModel();

    //Modelos Responsables
     DefaultComboBoxModel modeloComboResponsable = new DefaultComboBoxModel();
     DefaultComboBoxModel modeloComboResponsableValor = new DefaultComboBoxModel();

    private JDialog aboutBox;

     public org.jdesktop.application.ResourceMap resMap = org.jdesktop.application.Application.getInstance(playlist.PlayListApp.class).getContext().getResourceMap(PlayListView.class);
    // </editor-fold>
}
